let arr = [
	{createdate: "2022/02/22", menuId: "91cccd09-cec8-4c98-8397-f2a82f985f9d"},
	{createdate: "2022/02/21", menuId: "af737847-85d8-480c-b4b9-b84a4f545335"},
	{createdate: "2022/02/20", menuId: "972049a3-7fee-468c-a9c4-ae0b2051fea6"},
	{createdate: "2022/02/19", menuId: "2014c4d0-ac1c-446b-90ef-5fcc600bd3e9"},
	{createdate: "2022/02/18", menuId: "1ef1b79f-c264-4483-9a05-6a14d24aad98"},
	{createdate: "2022/02/12", menuId: "c36bb5d9-7bc2-4998-a92d-cce9697f9c65"},
	{createdate: "2022/02/16", menuId: "6dde26fd-97f6-4929-9795-de4e4b25e893"},
	{createdate: "2022/02/15", menuId: "fae49c3d-95f3-436b-ad4b-03481300b47a"},
	{createdate: "2022/02/13", menuId: "dc43f475-e95c-4d8a-b924-2d6856ca725d"},
	{createdate: "2022/02/22", menuId: "91cccd09-cec8-4c98-8397-f2a82f985f9d"},
	{createdate: "2022/02/12", menuId: "c36bb5d9-7bc2-4998-a92d-cce9697f9c65"},
]

let newArr = new Map()
const res = arr.filter((item)=>!newArr.has(item.menuId)&&newArr.set(item.menuId,1))
console.log("the reault: ",res)

// [
//   {
//     createdate: '2022/02/22',
//     menuId: '91cccd09-cec8-4c98-8397-f2a82f985f9d'
//   },
//   {
//     createdate: '2022/02/21',
//     menuId: 'af737847-85d8-480c-b4b9-b84a4f545335'
//   },
//   {
//     createdate: '2022/02/20',
//     menuId: '972049a3-7fee-468c-a9c4-ae0b2051fea6'
//   },
//   {
//     createdate: '2022/02/19',
//     menuId: '2014c4d0-ac1c-446b-90ef-5fcc600bd3e9'
//   },
//   {
//     createdate: '2022/02/18',
//     menuId: '1ef1b79f-c264-4483-9a05-6a14d24aad98'
//   },
//   {
//     createdate: '2022/02/12',
//     menuId: 'c36bb5d9-7bc2-4998-a92d-cce9697f9c65'
//   },
//   {
//     createdate: '2022/02/16',
//     menuId: '6dde26fd-97f6-4929-9795-de4e4b25e893'
//   },
//   {
//     createdate: '2022/02/15',
//     menuId: 'fae49c3d-95f3-436b-ad4b-03481300b47a'
//   },
//   {
//     createdate: '2022/02/13',
//     menuId: 'dc43f475-e95c-4d8a-b924-2d6856ca725d'
//   }
// ]